/*
 *  Copyright (C) 2010 Matthias Buch-Kromann <mbk.isv@cbs.dk>
 * 
 *  This file is part of the IncrementalParser package.
 *  
 *  The IncrementalParser program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Lesser General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 * 
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General Public License for more details.
 * 
 *  You should have received a copy of the GNU Lesser General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.osdtsystem.incparser.graphs;

/**
 *
 * @author Matthias Buch-Kromann <mbk.isv@cbs.dk>
 */
public interface BaseGraph extends Graph {
    // Listeners and scorers
    int addLayer(String name);
    int addIntFeature(String name);
    int addObjectFeature(String name);
    int addGraphScorer(GraphScorer scorer);
    void addGraphListener(GraphListener listener, int[] layers);
    void addIntFeatureListener(GraphListener listener, int[] features);
    void addObjectFeatureListener(GraphListener listener, int[] features);

    // Graph operations that modify the base graph
    int addNode(int layer);
    void addEdge(int layer, int innode, int outnode, int type);
    void removeEdge(int layer, int innode, int outnode, int type);
    void removeEdges(int layer);
    void moveEdge(int layer, int innode, int oldoutnode, int oldtype, int newoutnode, int newtype);
    void clearNodes();
    void clearEdges();
}
